import HttpRequest from '@/api/request';
import ApiConfig from '@/api/api-config';
function codeListByType(data) {
    let url = ApiConfig.byType+'?codeType='+data;
    return HttpRequest.requestJsonPost(url)
}
function login(data) {
    let url = ApiConfig.login;
    return HttpRequest.requestFormPost(url,data)
}
function logout(data) {
    let url = ApiConfig.logout;
    return HttpRequest.requestJsonPost(url,data)
}
function captcha(data) {
    let url = ApiConfig.captcha;
    return HttpRequest.requestBlobPost(url,data)
}
function guestLogin(data) {
    let url = ApiConfig.guestLogin;
    return HttpRequest.requestJsonPost(url,data)
}
// 故障工单列表
function workOrderList(data) {
    let url = ApiConfig.workOrderList;
    return HttpRequest.requestJsonPost(url,data)
}
let Service = {
	codeListByType,
};
export default Service;